-- GENERATED SPELL FOR [Aotona] --


function spell0_32481(pUnit, Event) --@Eye Peck,n/a--
pUnit:FullCastSpellOnTarget(49865,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32481', 5299, 1)
end

function spell1_32481(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(51144,pUnit)
pUnit:RegisterEvent('Sorts_32481', 1000, 1)
end

function Sorts_32481(pUnit, Event)
local choix_sorts_32481 = math.random(0, 1)
if choix_sorts_32481 == 0 then
pUnit:RegisterEvent('spell0_32481', 1, 1)
end
if choix_sorts_32481 == 1 then
pUnit:RegisterEvent('spell1_32481', 1, 1)
end
end

function mob32481_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32481', math.random(1500, 3000), 1)
end

function mob32481_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32481_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32481_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32481, 1, 'mob32481_Action')
RegisterUnitEvent(32481, 2, 'mob32481_Leave')
RegisterUnitEvent(32481, 3, 'mob32481_Kill')
RegisterUnitEvent(32481, 4, 'mob32481_Die')
